Problem with displaying usernames in my flash[:notice] - Agile Web Development With Rails - Chapter

Posted by Lee on Stack Overflow See other posts from Stack Overflow or by Lee
Published on 2010-04-24T20:59:19Z Indexed on 2010/04/24 21:03 UTC
Read the original article Hit count: 184

Filed under:
|
|

I can't figure out what I'm doing wrong here.

I can’t seem to get the #{@user.name} to work in my flash[:notice]

Everything else works just fine I can add new users, but when I add a new user instead of saying “User John Doe was successfully created”, it says “User #{@user.name} was successfully created.”

I'm at this point in the depot app: depot_p/app/controllers/users_controller.rb to work.

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about rails